Automattic\WooCommerce\StoreApi\Utilities\OrderController B

Total Complexity 95
Dependencies 11
Dependents 3
Total lines 755
Lines of code 466
Logical lines of code 206
Comment lines 201
Methods 21
Properties 1

Methods 21

Method Rating Maintainability Complexity Lines of code
get_failed_order_stock_error()
A
44 16 43
validate_address_fields()
A
44 14 40
validate_addresses()
A
42 9 57
validate_selected_shipping_methods()
A
52 8 24
validate_coupons()
A
43 6 52
update_line_items_from_cart()
S
50 6 30
validate_coupon_usage_limit()
S
48 5 37
update_order_from_cart()
S
49 4 30
sync_customer_data_with_order()
S
47 3 36
validate_order_key()
S
68 5 6
validate_email()
S
56 3 20
update_addresses_from_cart()
S
49 2 31
validate_coupon_email_restriction()
S
69 4 6
create_order_from_cart()
S
58 2 16
get_email_from_user_id()
S
75 2 4
get_usage_per_aliases()
S
59 1 14
validate_allowed_country()
S
79 1 3
get_coupon()
S
80 1 3
default_order_status()
S
82 1 3
validate_order_before_payment()
S
67 1 8
__construct()
S
80 1 3